/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.sys.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.sys.entity.Store;

/**
 * 门店DAO接口
 * @author lvbo
 * @version 2013-06-21
 */
public interface StoreDao extends StoreDaoCustom, CrudRepository<Store, Long> {

	@Query("from Store where LOGIN_NAME = ?1")
	public Store getByName(String name);
}

/**
 * DAO自定义接口
 * @author lvbo
 */
interface StoreDaoCustom extends BaseDao<Store> {

}

/**
 * DAO自定义接口实现
 * @author lvbo
 */
@Component
class StoreDaoImpl extends BaseDaoImpl<Store> implements StoreDaoCustom {

}
